﻿using PublicMethod;
using System.Web.Mvc;

namespace OrderingOnlineWeChat.Controllers
{
    public class BaseControl : Controller
    {

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (this.Session[SessionStorage.UserLogin] == null)
            {

                //跳转到登陆页
                filterContext.Result = new RedirectResult("/Home/Unusual");

            }
            base.OnActionExecuting(filterContext);
        }

    }
}